package com.tanhua.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

public abstract class BasePojo implements Serializable {

        @TableField(fill = FieldFill.INSERT)
        private Date created;
        @TableField(fill = FieldFill.INSERT_UPDATE)
        private Date updated;
        public Date getCreated() {
                return created;
            }

            public void setCreated(Date created) {
                this.created = created;
            }

            public Date getUpdated() {
                return updated;
            }

            public void setUpdated(Date updated) {
                this.updated = updated;
            }

    @Override
    public String toString() {
        return "BasePojo{" +
                "created=" + created +
                ", updated=" + updated +
                '}';
    }
}
